home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CScrollList 1.0 / Demo Classes / CEditString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  922 b   |  48 lines  |  [TEXT/KAHL]

  1. /*************************************************************************************
  2.  
  3.  CEditString.h
  4.     
  5.         Interface for CEditString
  6.     
  7.     SUPERCLASS = CDialogText
  8.     
  9.         © 1992 Dave Harkness
  10.  
  11. *************************************************************************************/
  12.  
  13.  
  14. #define _H_CEditString
  15.  
  16. #include <CDialogText.h>
  17.  
  18.  
  19. class CEditString : public CDialogText
  20. {
  21. public:
  22.  
  23.     void        IEditString( CView *anEnclosure, CView *aSupervisor,
  24.                              short aWidth, short aHeight, short aHEncl,  short aVEncl,
  25.                              SizingOption aHSizing, SizingOption aVSizing,
  26.                              short aLineWidth);
  27.     
  28.     virtual void        DoKeyDown( char theChar, Byte keyCode, EventRecord *macEvent);
  29.     
  30.     virtual Boolean        BecomeGopher( Boolean fBecoming);
  31.  
  32. protected:
  33.  
  34.     virtual void    MakeBorder( void);
  35.  
  36. };
  37.     
  38.     
  39. /* Change protocol for CEditString        */
  40.  
  41. enum
  42. {
  43.     editStringDoneEditing = dialogTextLastChange + 1,
  44.     
  45.     editStringLastChange = editStringDoneEditing
  46.  
  47. };
  48.